package com.foreknow.elmboot.service.impl;

import com.foreknow.elmboot.mapper.DeliveryaddressMapper;
import com.foreknow.elmboot.po.Deliveryaddress;
import com.foreknow.elmboot.service.DeliveryaddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service
public class DeliveryaddressServiceImpl implements DeliveryaddressService {
    @Autowired
    private DeliveryaddressMapper deliveryaddressMapper;


    @Override
    public List<Deliveryaddress> slistDeliveryAddressByUserId(Deliveryaddress deliveryaddress) {
        return deliveryaddressMapper.dlistDeliveryAddressByUserId(deliveryaddress);
    }

    @Override
    public Deliveryaddress sgetDeliveryAddressById(Deliveryaddress deliveryaddress) {
        return deliveryaddressMapper.dgetDeliveryAddressById(deliveryaddress);
    }

    @Override
    public int dsaveDeliveryAddress(Deliveryaddress deliveryaddress) {
        return deliveryaddressMapper.dsaveDeliveryAddress(deliveryaddress);
    }

    @Override
    public int dupdateDeliveryAddress(Deliveryaddress deliveryaddress) {
        return deliveryaddressMapper.dupdateDeliveryAddress(deliveryaddress);
    }

    @Override
    public int dremoveDeliveryAddress(Deliveryaddress deliveryaddress) {
        return deliveryaddressMapper.dremoveDeliveryAddress(deliveryaddress);
    }
}
